﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MySpace.Data;

/// <summary>
///LotteryListTable 的摘要说明
/// </summary>
namespace DataBaseTable
{
    public class LotteryListTable : DBTable
    {
        private const string tableName = "Lottery_List";
        public LotteryListTable()
            : base(GetHandler.Init(), tableName)
        {
            this.GetRow();
            //没有参数重载
        }
        public LotteryListTable(int id)
            : base(GetHandler.Init(), tableName)
        {
            this.Filter = "id=?";
            this.AddParameter("id", id);
            this.GetRow();
            //有参数重载
        }
        /// <summary>
        /// ID
        /// </summary>
        public int ID
        {
            get
            {
                try { return (int)this.DataRow["id"]; }
                catch { return 0; }
            }
        }
        /// <summary>
        /// Eamil
        /// </summary>
        public string Eamil
        {
            get
            {
                try { return (string)this.DataRow["Eamil"]; }
                catch { return string.Empty; }
            }
            set
            {
                this.DataRow["Eamil"] = value;
            }
        }
        /// <summary>
        /// 模块
        /// </summary>
        public string mokuai
        {
            get
            {
                try { return (string)this.DataRow["mokuai"]; }
                catch { return string.Empty; }
            }
            set
            {
                this.DataRow["mokuai"] = value;
            }
        }
        /// <summary>
        /// 兑奖码
        /// </summary>
        public string checkCode
        {
            get
            {
                try { return (string)this.DataRow["checkCode"]; }
                catch { return string.Empty; }
            }
            set
            {
                this.DataRow["checkCode"] = value;
            }
        }
        /// <summary>
        /// 用么名称
        /// </summary>
        public string uname
        {
            get
            {
                try { return (string)this.DataRow["uname"]; }
                catch { return string.Empty; }
            }
            set
            {
                this.DataRow["uname"] = value;
            }
        }
        /// <summary>
        /// 是否已经兑奖
        /// </summary>
        public int isCheck
        {
            get
            {
                try { return (int)this.DataRow["isCheck"]; }
                catch { return 0; }
            }
            set
            {
                this.DataRow["isCheck"] = value;
            }
        }
        /// <summary>
        /// 是否已经发送兑奖码
        /// </summary>
        public int isSendCode
        {
            get
            {
                try { return (int)this.DataRow["isSendCode"]; }
                catch { return 0; }
            }
            set
            {
                this.DataRow["isSendCode"] = value;
            }
        }
         /// <summary>
        /// 所属抽奖活动ID
        /// </summary>
        public int lotteryid
        {
            get
            {
                try { return (int)this.DataRow["lotteryid"]; }
                catch { return 0; }
            }
            set
            {
                this.DataRow["lotteryid"] = value;
            }
        }
    }
}